import { loadPackageDefinition } from '@grpc/grpc-js';
import { loadSync } from '@grpc/proto-loader';
import { join } from 'path'

export default (loadPackageDefinition(
 loadSync(
  join(import.meta.dirname, 'api.proto'), 
  {
   keepCase: true,
   longs: Number,
   enums: Number,
   defaults: true,
   oneofs: true
  }
 )
)).rag;
